package com.shi.shiro.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {
    private static final long serialVersionUID = -3011176906577117777L;
    private String username;
    private String password;
    private String salt;
    private String nickname;
    private String avatar;
    private String location;
    private List<Role> roleList;
    private Long id;

    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}
